package ru.alt22.visor.php.ui;

import org.eclipse.jface.resource.ImageDescriptor;

public class PluginImages {

	private static final String NAME_PREFIX = "icons/"; //$NON-NLS-1$

	private static final String T_ACTION = "actions/"; //$NON-NLS-1$
	private static final String T_VIEW = "view/"; //$NON-NLS-1$
	private static final String T_DISABLED = "disabled/"; //$NON-NLS-1$
	private static final String T_INFO = "info/"; //$NON-NLS-1$
	private static final String T_NEW = "new/"; //$NON-NLS-1$
	private static final String T_WIZARD = "wizard/"; //$NON-NLS-1$

	private static final String IMG_CLASS = "class.gif"; //$NON-NLS-1$
	private static final String IMG_INTERFACE = "interface.gif"; //$NON-NLS-1$
	private static final String IMG_PACKAGE_FOLDER = "package-folder.gif"; //$NON-NLS-1$
	private static final String IMG_PACKAGE = "package.gif"; //$NON-NLS-1$
	private static final String IMG_DETAILS = "details.gif"; //$NON-NLS-1$
	private static final String IMG_CLOSE = "close.gif"; //$NON-NLS-1$
	private static final String IMG_PHP_PROJECT = "php-project.gif"; //$NON-NLS-1$
	private static final String IMG_TEST_CASE = "test-case.gif"; //$NON-NLS-1$
	private static final String IMG_TEST_SUITE = "test-suite.gif"; //$NON-NLS-1$

	public static final String IMAGE_PACKAGE_FOLDER_INFO = NAME_PREFIX + T_INFO + IMG_PACKAGE_FOLDER;
	public static final String IMAGE_PACKAGE_INFO = NAME_PREFIX + T_INFO + IMG_PACKAGE;

	public static final ImageDescriptor DESC_CLASS_DISABLED = create(T_DISABLED, IMG_CLASS);
	public static final ImageDescriptor DESC_CLASS_INFO = create(T_INFO, IMG_CLASS);
	public static final ImageDescriptor DESC_CLASS_NEW = create(T_NEW, IMG_CLASS);
	public static final ImageDescriptor DESC_CLASS_WIZARD = create(T_WIZARD, "class.png");

	public static final ImageDescriptor DESC_INTERFACE_DISABLED = create(T_DISABLED, IMG_INTERFACE);
	public static final ImageDescriptor DESC_INTERFACE_INFO = create(T_INFO, IMG_INTERFACE);
	public static final ImageDescriptor DESC_INTERFACE_NEW = create(T_NEW, IMG_INTERFACE);
	public static final ImageDescriptor DESC_INTERFACE_WIZARD = create(T_WIZARD, "interface.png");

	public static final ImageDescriptor DESC_PACKAGE_FOLDER_INFO = create(T_INFO, IMG_PACKAGE_FOLDER);

	public static final ImageDescriptor VIEW_DETAILS = create(T_VIEW, IMG_DETAILS);

	public static final ImageDescriptor ACTION_CLOSE = create(T_ACTION, IMG_CLOSE);
	
	public static final ImageDescriptor INFO_PHP_PROJECT = create(T_INFO, IMG_PHP_PROJECT);
	public static final ImageDescriptor INFO_TEST_CASE = create(T_INFO, IMG_TEST_CASE);
	public static final ImageDescriptor INFO_TEST_SUITE = create(T_INFO, IMG_TEST_SUITE);
	
	private static ImageDescriptor create(String type, String image) {
		return PDToolsUIPlugin.getImageDescriptor(NAME_PREFIX + type + image);
	}

}